﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Persistency.Handler
{
	public abstract class AbstractHandler : IDisposable
	{

		#region Members

		protected bool disposed = false; // To detect redundant calls

		#endregion

		#region IDisposable Interface

		protected abstract void Dispose(bool disposing);

		// This code added by Visual Basic to correctly implement the disposable pattern.
		public void Dispose()
		{
			// Do not change this code.  Put cleanup code in Dispose(ByVal disposing As Boolean) above.
			Dispose(true);
			GC.SuppressFinalize(this);
		}

		#endregion

	}
}
